/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部样式 */
.top-bar {
    background-color: #8b0000;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    margin: 0 10px;
    font-size: 14px;
    color: white;
}

.search-box {
    display: flex;
    margin-left: 20px;
}

.search-box input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 3px 0 0 3px;
    outline: none;
}

.search-box button {
    padding: 5px 10px;
    background: #8b0000;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.main-header {
    background-color: #8b0000;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.logo-before, .logo-after {
    background-color: #8b0000;
    height: 60px;
    width: 50%;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 60px;
}

.top-slogan {
    color: #ccc;
    font-size: 18px;
    position: absolute;
    right: 15px;
}

.slogan-1 {
    margin-right: 20px;
}

/* 导航栏样式 */
.main-nav {
    background-color: #8b0000;
    margin-bottom: 10px;
}

.nav-menu {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.nav-menu li:hover {
    background-color: #6d0000;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 图片展示区 */
.showcase {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主内容区 */
main {
    padding: 30px 0;
}

.main-content {
    display: flex;
    gap: 30px;
}

.left-column {
    flex: 3;
}

.right-column {
    flex: 1;
}

.news-section, .blocks-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-item h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.news-item .date {
    color: #8b0000;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 14px;
    color: #666;
}

/* 公告版块 */
.announcement-section {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item {
    display: flex;
    background-color: #fff;
    padding: 10px;
    border-radius: 3px;
}

.date-box {
    width: 40px;
    height: 40px;
    background-color: #8b0000;
    color: white;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    margin-right: 15px;
}

.content h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.content p {
    color: #666;
    font-size: 12px;
}

/* 三大板块 */
.blocks-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.content-block {
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f8f8;
}

.content-block h2 {
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.block-content p {
    margin-bottom: 10px;
}

.block-content .date {
    color: #8b0000;
    font-size: 14px;
    margin-bottom: 10px;
}

.block-image {
    text-align: center;
    margin-top: 15px;
}

.block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 专题网站版块 */
.special-websites {
    margin: 30px 0;
    padding: 30px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.special-websites h2 {
    margin-bottom: 30px;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.website-item {
    background-color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.website-item:hover {
    transform: translateY(-5px);
}

.website-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 3px;
}

.website-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

/* 页脚 */
footer {
    background-color: #8b0000;
    color: white;
    padding: 30px 0 10px;
}

.footer-top {
    display: flex;
    justify-content: space-around;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-qr img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.footer-logo img {
    height: 50px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

.footer-info p, .footer-links p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links ul {
    display: flex;
}

.footer-links li {
    margin-right: 15px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .blocks-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .website-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-content {
        flex-direction: column;
    }

    .right-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blocks-section {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
    }

    .website-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-info, .footer-links {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .website-grid {
        grid-template-columns: 1fr;
    }
}